package com.org;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * @author:Liangjilong
 */
public class IbatisBaseDao extends SqlMapClientDaoSupport{
	

	/**
	 * @Autowired和@Resource一样的可以注入
	 * 
	 */
	@Resource(name = "sqlMapClient")
    public SqlMapClient sqlMapClient;  
  
    @PostConstruct  
    public void initSqlMapClient() {  
        super.setSqlMapClient(sqlMapClient);  
    } 
}
